package sma.organizations.signals;

import org.janusproject.kernel.agentsignal.Signal;

import appli.utils.MoveEnum;

/**
 * This signal is fired when a arrowkey is pressed in GUI
 * 
 * @author Etienne Sainton
 * @version 0.1
 */
public class SendMoveGoalSignal extends Signal {

	private static final long serialVersionUID = 907849552158727195L;
		
	private final MoveEnum move;
	
	private final int groupe;
	/**
	 * @param source is the emitter of the signal
	 * @param move is the movement to sent.
	 * @param groupe the group id
	 */
	public SendMoveGoalSignal(Object source, MoveEnum move, int groupe) {
		super(source);
		this.move = move;
		this.groupe = groupe;
	}

	/** Replies the movement to send
	 * 
	 * @return the movement
	 */
	public MoveEnum getMove() {
		return this.move;
	}
	
	/** Return the groupe
	 * 
	 * @return the groupe
	 */
	public int getGroupe() {
		return this.groupe;
	}
}
